<template>
  <div class="ssc-list tag-list">
    <Search :requireName="requireName" @search="search" />
    <Stable ref="tableRef" />
  </div>
</template>

<script setup lang="ts">
  import { ref } from 'vue'
  import { useRoute } from 'vue-router'

  import Search from './components/AttendSearch.vue'
  import Stable from './components/AttendStable.vue'

  const tableRef = ref<InstanceType<typeof Stable>>()
  const route = useRoute()
  const requireName = route.query.requireName || ''

  const search = (params: TagManageTypes.SearchData) => {
    tableRef.value?.search(params)
  }
</script>
<style lang="less" scoped></style>
